//
//  TMUserModel.m
//  TMtravel
//
//  Created by Playboy on 2017/3/17.
//  Copyright © 2017年 tmkj. All rights reserved.
//

#import "TMUserModel.h"

@implementation TMUserModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:[NSString stringWithFormat:@"%zd",self.status] forKey:@"status"];
    [aCoder encodeObject:[NSString stringWithFormat:@"%zd",self.user_id] forKey:@"user_id"];
    [aCoder encodeObject:self.token forKey:@"token"];
}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self == [super init]) {
        self.status = [[aDecoder decodeObjectForKey:@"status"] integerValue];
        self.user_id = [[aDecoder decodeObjectForKey:@"user_id"] integerValue];
        self.token = [aDecoder decodeObjectForKey:@"token"];
    }
    return self;
}
@end
